Bushnell fixes for 64-bit system.
authorrobertl <robertl>
Sun, 20 Dec 2009 20:32:24 +0000 (20:32 +0000)
committerrobertl <robertl>
Sun, 20 Dec 2009 20:32:24 +0000 (20:32 +0000)
bushnell.c

index 0b7a0403feffb0e041db6773f2757a9f09cf5c8a..513edf3a107a21f0e1f9e31aa5a91a5a48d74193 100644 (file)
@@ -177,13 +177,13 @@ wr_deinit(void) {
  */
 static void
 bushnell_read(void) {
-  long lat_tmp,lon_tmp;
+  gbint32 lat_tmp,lon_tmp;
   unsigned int unknown;
   unsigned int icon;
   waypoint *wpt_tmp = waypt_new();
 
-  lat_tmp = gbfgetuint32(file_in);
-  lon_tmp = gbfgetuint32(file_in);
+  lat_tmp = gbfgetint32(file_in);
+  lon_tmp = gbfgetint32(file_in);
 
   icon = gbfgetc(file_in);
   wpt_tmp->icon_descr = bushnell_get_name_from_symbol(icon);